<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>LeDownloadInfo API 说明文档 | 简介</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../update.html" />
    
    
    <link rel="prev" href="../download/download_observer.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="3.4"
        data-chapter-title="LeDownloadInfo API 说明文档"
        data-filepath="download/download_info.md"
        data-basepath=".."
        data-revision="Thu Apr 14 2016 20:52:34 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        简介
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="part0/index.html">
            
                
                    <a href="../part0/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        快速开始
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="part0/import_project.html">
            
                
                    <a href="../part0/import_project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        集成工程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="part0/demoyun_xing_xiao_guo_ji_shi_yong.html">
            
                
                    <a href="../part0/demoyun_xing_xiao_guo_ji_shi_yong.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        demo运行效果及使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="part0/get_start_play.html">
            
                
                    <a href="../part0/get_start_play.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        启动播放器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="part0/handle_video_ratio.html">
            
                
                    <a href="../part0/handle_video_ratio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        处理视频比例
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="part0/handle_video_view_change.html">
            
                
                    <a href="../part0/handle_video_view_change.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        处理屏幕旋转
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="part0/pano_quick_start.html">
            
                
                    <a href="../part0/pano_quick_start.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        全景播放
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="part0/hanlde_proguard.html">
            
                
                    <a href="../part0/hanlde_proguard.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        关于混淆
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="part1/index.html">
            
                
                    <a href="../part1/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        第一章
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="part1/player_structure.html">
            
                
                    <a href="../part1/player_structure.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        播放器基本架构
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="part1/player_api_Intro.html">
            
                
                    <a href="../part1/player_api_Intro.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        LetvPlayer播放器API说明
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="part1/playcontext_introduction.html">
            
                
                    <a href="../part1/playcontext_introduction.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        PlayContext ApI说明
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="download/download_module.html">
            
                
                    <a href="../download/download_module.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        下载模块
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="download/download_letter.html">
            
                
                    <a href="../download/download_letter.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        快速接入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="download/download_center.html">
            
                
                    <a href="../download/download_center.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        DownloadCenter API说明文档
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="download/download_observer.html">
            
                
                    <a href="../download/download_observer.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        LeDownloadObserver API说明文档
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="3.4" data-path="download/download_info.html">
            
                
                    <a href="../download/download_info.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        LeDownloadInfo API 说明文档
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="update.html">
            
                
                    <a href="../update.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        更新说明
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="fqa.html">
            
                
                    <a href="../fqa.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        Q&amp;A
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >简介</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="ledownloadinfo-api-&#x8BF4;&#x660E;&#x6587;&#x6863;">LeDownloadInfo API &#x8BF4;&#x660E;&#x6587;&#x6863;</h1>
<p>LeDownloadInfo&#x662F;SDK&#x4E0B;&#x8F7D;&#x5B9E;&#x4F8B;&#x3002;&#x6240;&#x4EE5;LeDownloadInfo&#x4E2D;&#x53EA;&#x662F;&#x5728;&#x4E00;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#x9700;&#x8981;&#x7528;&#x6237;&#x4E3B;&#x52A8;&#x53BB;&#x4FEE;&#x6539;&#x3002;&#x5176;&#x4ED6;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x7528;&#x6237;&#x90FD;&#x53EA;&#x80FD;&#x7528;&#x4E8E;&#x8BFB;&#x53D6;&#x4FE1;&#x606F;&#x3002;</p>
<p><strong>&#x76F4;&#x63A5;&#x8C03;&#x7528;downloadVideo(LeDownloadInfo info )&#x53BB;&#x4E0B;&#x8F7D;&#x89C6;&#x9891;&#xFF0C;&#x8FD9;&#x4E5F;&#x662F;&#x5F53;&#x524D;&#x6240;&#x63A8;&#x8350;&#x7684;&#x8C03;&#x7528;&#x65B9;&#x5F0F;</strong></p>
<pre><code class="lang-java">    LeDownloadInfo info = <span class="hljs-keyword">new</span> LeDownloadInfo();
    info.setUu(UUID); <span class="hljs-comment">// &#x5FC5;&#x586B;,&#x5426;&#x5219;&#x4E0D;&#x80FD;&#x4E0B;&#x8F7D;&#x89C6;&#x9891;</span>
    info.setVu(VUID); <span class="hljs-comment">// &#x5FC5;&#x586B;&#xFF0C;&#x5426;&#x5219;&#x4E0D;&#x80FD;&#x4E0B;&#x8F7D;&#x89C6;&#x9891;</span>
    info.setUserKey(UserKey);<span class="hljs-comment">//&#x7528;&#x6237;&#x4FE1;&#x606F;UserKey&#xFF0C;&#x9009;&#x586B;</span>
    info.setCheckCode(CheckCode);<span class="hljs-comment">// &#x7528;&#x6237;&#x4FE1;&#x606F;CheckCode,&#x9009;&#x586B;</span>
    info.setPayerName(PayerName);<span class="hljs-comment">// &#x7528;&#x6237;&#x4FE1;&#x606F;PayerName&#xFF0C;&#x9009;&#x586B;</span>
    <span class="hljs-comment">//&#x6269;&#x5C55;&#x6570;&#x636E;&#xFF0C;&#x8FD9;&#x6B21;&#x5B57;&#x6BB5;&#x63D0;&#x4F9B;&#x7ED9;&#x7528;&#x6237;&#x53EF;&#x6269;&#x5C55;&#x4F7F;&#x7528;&#x3002;&#x8FD9;&#x4E9B;&#x4FE1;&#x606F;&#x5728;&#x8C03;&#x5EA6;&#x8FC7;&#x7A0B;&#x4E2D;&#x90FD;&#x4E0D;&#x4F1A;&#x505A;&#x4EFB;&#x4F55;&#x7684;&#x4FEE;&#x6539;,&#x53EA;&#x662F;&#x5355;&#x72EC;&#x4FDD;&#x5B58;&#x5230;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#x3002;</span>
    info.setString1(String);<span class="hljs-comment">// &#x9009;&#x586B;</span>
    info.setString2(String);<span class="hljs-comment">// &#x9009;&#x586B;</span>
    info.setString3(String);<span class="hljs-comment">// &#x9009;&#x586B;</span>
    info.setString4(String);<span class="hljs-comment">// &#x9009;&#x586B;</span>
    info.setInt1(Int);<span class="hljs-comment">// &#x9009;&#x586B;</span>
    info.setInt2(Int);<span class="hljs-comment">// &#x9009;&#x586B;</span>

    DownloadCenter.downloadVideo(info);
</code></pre>
<h2 id="&#x9700;&#x8981;&#x7528;&#x5230;&#x7684;&#x65B9;&#x6CD5;">&#x9700;&#x8981;&#x7528;&#x5230;&#x7684;&#x65B9;&#x6CD5;</h2>
<table>
<thead>
<tr>
<th>&#x65B9;&#x6CD5;&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>getDownloadState</strong></td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x89C6;&#x9891;&#x7684;&#x4E0B;&#x8F7D;&#x72B6;&#x6001;&#xFF0C;<strong>&#x6CE8;&#x610F;&#x4E0D;&#x80FD;&#x4E3B;&#x52A8;&#x4FEE;&#x6539;</strong></td>
</tr>
<tr>
<td><strong>getFileName</strong></td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x7684;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td><strong>getFileSavePath</strong></td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x4FDD;&#x5B58;&#x7684;&#x8DEF;&#x5F84;</td>
</tr>
<tr>
<td><strong>getProgress</strong></td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x89C6;&#x9891;&#x7684;&#x4E0B;&#x8F7D;&#x8FDB;&#x5EA6;</td>
</tr>
<tr>
<td><strong>getFileLength</strong></td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x7684;&#x5927;&#x5C0F;</td>
</tr>
<tr>
<td><strong>getRateText</strong></td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#x4FDD;&#x5B58;&#x7684;&#x89C6;&#x9891;&#x6240;&#x5BF9;&#x5E94;&#x7684;&#x7801;&#x7387;</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../download/download_observer.html" class="navigation navigation-prev " aria-label="Previous page: LeDownloadObserver API说明文档"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../update.html" class="navigation navigation-next " aria-label="Next page: 更新说明"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
